const { getMaxListeners, on } = require("events")

console.log('bb唱的好好！')

// 输出window node.js没有dom，会报错
// console.log('window -----> ', window);

// 输出document node.js没有dom，会报错
// console.log('document -----> ', document);

//输出浏览器api node.js没有浏览器api，会报错
// console.log('loaction -----> ', loaction);
// console.log('history -----> ', history);
// console.log('document -----> ', document);
// const xhr = new XMLHttpRequest()

// 可以使用
// console.log('love')
// setTimeout(() => {
//     console.log('hhhh -----> ');
// },1000)

// 顶级对象global,globalThis
// console.log('global -----> ', global);
// console.log('gloabalThis -----> ', globalThis);//ES2020引入
// console.log('判断是否相等', global===globalThis);//ES2020引入
/* 
    global ----->  <ref *1> Object [global] {
    global: [Circular *1],
    queueMicrotask: [Function: queueMicrotask],
    clearImmediate: [Function: clearImmediate],
    setImmediate: [Function: setImmediate] {
      [Symbol(nodejs.util.promisify.custom)]: [Getter]
    },
    structuredClone: [Getter/Setter],
    clearInterval: [Function: clearInterval],
    clearTimeout: [Function: clearTimeout],
    setInterval: [Function: setInterval],
    setTimeout: [Function: setTimeout] {
      [Symbol(nodejs.util.promisify.custom)]: [Getter]
    },
    atob: [Getter/Setter],
    btoa: [Getter/Setter],
    performance: [Getter/Setter],
    fetch: [AsyncFunction: fetch] 
*/

const props = definedProps({
  type: {
    type: String,
    default:'1'
  }
})

const emits = defindEmits(['chuanGetList', '2222'])

emits('chuanGeiList', 111, 222, 333)

@chuanGeiList = getMaxListeners

export const 111 = de   useUserstore
  
  

